package com.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 专题电影表
 */
@Data
@TableName("specialfilmlist")
public class SpecialFilmList implements Serializable {
    @TableId(value = "id")
    private long id;//序号
    private Long movie_id;//电影id
    private Long special_id;//专题id

    @Override
    public boolean equals(Object o){
        if (o instanceof SpecialFilmList)
        {
            SpecialFilmList s =(SpecialFilmList) o;
            if (this.id==s.id)
            {
                return true;
            }
        }
        return false;
    }

    @Override
    public int hashCode()
    {
        return (int)this.id;
    }

}
